num1 = 100  # 不可变数据类型,int bool str tuple
num2 = 250
list = [1, 22, 3]


def func():
    global num1  # 声明在函数里面操作的num1是对全局变量num1的修改，仅仅对不可变数据类型声明即可，可变数据类型不用
    num1 = 400
    num2 = 700
    list[1] = 2
    print(num1, num2)


func()
print(num1)
print(num2)
print(list)
